/**
 * Created by zhang_renyang on 15/1/7.
 */
var mongoose = require('mongoose');

var Schema = mongoose.Schema;
var userSchema = new Schema({
        user_name:String,
        password:String,
        password_repeat:String,
        email:String,
        score:Number,
        status:Number,
        avatar:String,
        create_time:Date,
        update_time:Date
    },{collection:'user'}),
    ObjectId=Schema.ObjectId;
var userModel = mongoose.model('User',userSchema);
module.exports = userModel;